# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer:
pkgname=qucs-s
pkgver=1.1.0
pkgrel=1
pkgdesc="Fancy graphical user interface for a number of popular circuit simulation engines"
url="https://github.com/ra3xdh/qucs_s"
# ppc64le, riscv64, s390x: blocked by octave
arch="all !ppc64le !riscv64 !s390x"
license="GPL-2.0-only"
options="!check" # no test suite
depends="
	ngspice
	octave
	"
makedepends="
	bison
	cmake
	flex
	qt5-qtbase-dev
	qt5-qtsvg-dev
	qt5-qttools-dev
	samurai
	"
subpackages="$pkgname-doc $pkgname-lang"
source="https://github.com/ra3xdh/qucs_s/archive/$pkgver/qucs_s-$pkgver.tar.gz"
langdir="/usr/share/qucs-s/lang"
builddir="$srcdir/qucs_s-$pkgver"

build() {
	cmake -B builddir -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=Release
	cmake --build builddir
}

package() {
	DESTDIR="$pkgdir" cmake --install builddir
}

sha512sums="
bc487ff3ad0b06d694b570a02937e4a47d04148e949117148440d7b1293b669fc33b989316fad4bf703fe6bf94c034f7f4a97457a3ebfe08bcd7e9cf86e7f49b  qucs_s-1.1.0.tar.gz
"
